example on extrema of two variables function